package payroll.trans;

import payroll.PaymentMethod;
import payroll.Transaction;
import payroll.method.MailMethod;

public class ChangeMailTransaction extends ChangeMethodTransaction implements Transaction {


	private String address;
	public ChangeMailTransaction(int empId, String address) {
		super(empId);
		this.address=address;
	}

	
	@Override
	protected PaymentMethod getPaymentMethod() {
		
		return new MailMethod(address);
	}
	
	
}
